var answer = {};

function getAnswer() {
    var ls = document.getElementsByClassName("list-item");
    for (var i = 0; i < ls.length; i++) {
        let title = ls[i].getElementsByClassName("section-title")[0].textContent;
        let answers = ls[i].getElementsByClassName("is-right");
        let answerList = [];
        for (let j = 0; j < answers.length; j++) {
            answerList.push(answers[j].getElementsByClassName("option-detail")[0].textContent);
        }
        answer[title] = answerList;
    }
}

getAnswer();